package cn.edu.kzjsxy.graduationproject.service;

import cn.edu.kzjsxy.graduationproject.common.Page;
import cn.edu.kzjsxy.graduationproject.common.Result;
import cn.edu.kzjsxy.graduationproject.dto.StudentDormitoryAssignment;
import cn.edu.kzjsxy.graduationproject.entity.StudentDormAssignments;
import cn.edu.kzjsxy.graduationproject.entity.Users;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 * 学生宿舍分配表 服务类
 * </p>
 *
 * @author chén jiā jùn
 * @since 2024-04-14
 */
public interface IStudentDormAssignmentsService extends IService<StudentDormAssignments> {

//	根据条件查询学生宿舍分配信息
	List<StudentDormAssignments> selectStudentDormAssignmentsByCondition(StudentDormAssignments studentDormAssignments);

//	分页获取学生宿舍分配信息
	Result<PageInfo<StudentDormAssignments>> selectStudentDormAssignmentsByPage(Page page, StudentDormAssignments studentDormAssignments);


//	查询学生宿舍分配信息 (多表查询)
	List<StudentDormitoryAssignment> getStudentDormAssignments(StudentDormitoryAssignment studentDormitoryAssignment);

//	分页查询学生宿舍分配信息 (多表查询)
	 Result<PageInfo<StudentDormitoryAssignment>> getStudentDormAssignmentsPage(Page page, StudentDormitoryAssignment studentDormitoryAssignment, HttpServletRequest request);

//  查询未分配的学生信息（多表查询）
	 List<Users> getStudentsWithoutDormitory();
}
